package ua.at.tsvetkov.samizdat;

public class Const {

	// General information
	public static final int			TIMEOUT									= 1000;
	public static final String		ENCODING									= "windows-1251";												// "koi8-r";
	public final static String		clearPattern							= new String("___________________________________");

	public static final String		GENRES									= "Жанры";
	public static final String		AUTHORS									= "Авторы";
	public static final String		READ										= "Читаю";
	public static final String		FAVORITES								= "Избранное";
	public static final String		DOWNLOADED								= "Загруженное";
	public static final String		FRAGMENT_AUTHORS						= "FRAGMENT_AUTHORS";
	public static final Boolean	SHOW_PROGRESS							= true;
	public static final Boolean	DONT_SHOW_PROGRESS					= false;
	public static final String		LAST_UPDATE_DATE						= "LAST_UPDATE_DATE";

	// broadcast and intents
	public static final String		FRAGMENT_GENRES_CLICK_POSITION	= "fragment_genres_click_position";
	public static final String		ALARM_MANAGER_LAUNCH					= "ALARM_MANAGER_LAUNCH";
	public static final String		FRAGMENT_BOOKS_CLICK_TITLE			= "fragment_authors_click_title";
	public static final String		BROADCAST_MESSAGE						= "ua.at.tsvetkov.samizdat.BROADCAST_MESSAGE";
	public static final String		BOOKS_LOADING_PERCENTS				= "BOOKS_LOADING_PERCENTS";
	public static final String		END_TIME									= "END_TIME";
	public static final String		UPDATE_LOADING_PERCENTS				= "UPDATE_LOADING_PERCENTS";

	public static final String		SERVICE_BOOKS_STARTED				= "SERVICE_BOOKS_STARTED";
	public static final String		SERVICE_BOOKS_STOPED					= "SERVICE_BOOKS_STOPED";
	public static final String		SERVICE_GENRES_STARTED				= "SERVICE_GENRES_STARTED";
	public static final String		SERVICE_GENRES_STOPED				= "SERVICE_GENRES_STOPED";
	public static final String		SERVICE_UPDATE_STARTED				= "SERVICE_UPDATE_STARTED";
	public static final String		SERVICE_UPDATE_STOPED				= "SERVICE_UPDATE_STOPED";
	public static final String		SERVICE_TEXT_DOWNLOAD_STARTED		= "SERVICE_TEXT_DOWNLOAD_STARTED";
	public static final String		SERVICE_TEXT_DOWNLOAD_STOPED		= "SERVICE_TEXT_DOWNLOAD_STOPED";
	public static final String		SERVER_IS_UNAVAILABLE				= "SERVER_IS_UNAVAILABLE";
	public static final String		DATA_BASE_IS_LOADED					= "DATA_BASE_IS_LOADED";
	public static final String		DOWNLOAD_TEXT_SUCCESS				= "DOWNLOAD_TEXT_SUCCESS";

	// Books database tables
	public static final String		BOOK										= "book";

	public static final String		ID											= "_id";
	public static final String		OBJECT									= "object";
	public static final String		AUTHOR									= "author";
	public static final String		TITLE										= "title";
	public static final String		TYPE										= "type";
	public static final String		SIZE										= "size";
	public static final String		DATE										= "date";
	public static final String		BALL										= "ball";
	public static final String		COUNTER									= "counter";
	public static final String		ALL_JANR									= "all_janr";
	public static final String		ANNOT										= "annot";
	public static final String		BOOK_GENRES								= "book_genres";
	public static final String		BOOK_PATH								= "book_path";

	// Genres database table
	public static final String		GENRE										= "genre";

	// public static final String ID = "_id"; // same string is upper, no need to duplicate
	public static final String		NAME										= "name";
	public static final String		CODE										= "code";
	public static final String		AMOUNT									= "amount";

}
